package cn.com.biz;

import java.util.List;

import cn.com.dao.PexaminationDao;
import cn.com.entity.Pexamination;

public class PexaminationBiz {

	//体检biz文件
	private PexaminationDao pexaminationdao;
	public PexaminationDao getPexaminationdao() {
		return pexaminationdao;
	}
	public void setPexaminationdao(PexaminationDao pexaminationdao) {
		this.pexaminationdao = pexaminationdao;
	}
	private int pxid;
	//查询所有类别biz
/*	public List<Pexamination> selectpexamination(){
		System.out.println("昨天出错，今天出错，天天出错，你不烦么/");
		List<Pexamination> list=(List<Pexamination>) pexaminationdao.selectPexamination();
		//返回什么类型用什么类型接着
		return list;

	}*/
	
	public int getPxid() {
		return pxid;
	}
	public void setPxid(int pxid) {
		this.pxid = pxid;
	}
	//增加体检
	public boolean addPexamination(Pexamination pexamination){
		boolean b=pexaminationdao.addPexamination(pexamination);
		return b;

	}
	//删除体检
	public boolean deletePexamination(Pexamination pexamination){
		boolean b=pexaminationdao.deletePexamination(pexamination);
		return b;
	}
	//修改体检
	public boolean updatePexamination(Pexamination pexamination){
		boolean b=pexaminationdao.updatePexamination(pexamination);
		return b;
	}
	//查询全部
	public List<Pexamination> selectPexamination(){
		List<Pexamination> list=pexaminationdao.selectPexamination();
		return list;
	}
	//通过id
	public Pexamination selectPexaminationByid(Pexamination pexamination){
		Pexamination pexaminationbyid=pexaminationdao.selectPexaminationByid(pexamination);
		return pexaminationbyid;
	}
	//查询类别
	public Pexamination getonebyid(){
		Pexamination pexamination=pexaminationdao.getonebyid(pxid);
		return pexamination;
	}
}
